import java.io.*;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("d:/Demo/111.txt");
        try (InputStream is = new FileInputStream(file)) {
            while (true) {
                int b = is.read();
                if (b == -1) {
                    break;
                }
                System.out.printf("%c", b);
            }
        }
    }
}
